# _*_ utf-8 _*_

# 练习题，将给定的整钱兑换成较小的货币单位
total_money = eval(input("请输入你要兑换的金额：（支持小数）:"))
money_10 = int(int(total_money) / 10)
money_5 = int(int(total_money) % 10 / 5)
money_1 = int(total_money) % 10 - money_5 * 5
print("需要10元纸币: {0}张\n需要5元纸币: {1}张\n需要1元纸币: {2}张\n".format(
        money_10, money_5, money_1
    ))

# 计算小数部分
money_small_num = total_money * 10 % 10
money_small_num_5 = int(money_small_num / 5)
money_small_num_1 = int(money_small_num - money_small_num_5 * 5)

print("需要5角硬币：{}个\n需要1角硬币：{}个".format(money_small_num_5,money_small_num_1))


